You need to change your preg_replace to preg_replace('/(\$config\[\'website\'] = \').*?(\';)/', '$1aaaaaa$2', file_get_contents('tekst.txt')). ... <看更多>
Search
Search
You need to change your preg_replace to preg_replace('/(\$config\[\'website\'] = \').*?(\';)/', '$1aaaaaa$2', file_get_contents('tekst.txt')). ... <看更多>
... <看更多>
PHP: (REGEX/preg_replace) Remove non-numeric characters - gist:3863756. ... <看更多>
Avoid preg_replace unless you need to use it and always use str_replace instead, which is an order of magnitude faster. ... <看更多>